﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Game.model.@base
{
    public class TeamType
    {
        private string _name;
        public TeamType(string name)
        {
            _name = name;
        }
        public  static readonly TeamType NONE=new TeamType("NONE");
        public static readonly TeamType BLUE = new TeamType("BLUE");
        public static readonly TeamType RED = new TeamType("RED");
        public  IEnumerable<TeamType> Values
        {
            get 
            { 
                yield return NONE;
                yield return BLUE;
                yield return RED;
            }
        }
        public TeamType revert()
        {
            return this == BLUE ? RED : this == RED ? BLUE : NONE;
        }
    }
}
